<template>
  <div>
    <el-row class="links-set">
      <el-col :span="3">推广链接</el-col>
      <el-col :xs="12" :md="12" :lg="11">
        <span>http://seller.jindouyun888.cn/#/regist?code=%2a%2a%2a%2a%2a%2a%2a%2a</span>
      </el-col>
      <el-col :span="4">
        <el-button type="success" size="mini">复制</el-button>
        <el-button type="primary" size="mini">申请开通</el-button>
      </el-col>
    </el-row>

    <el-form :inline="true" :model="searchItem" class="demo-form-inline" size="mini">
      <el-form-item class="cls-choose">
        <el-select v-model="searchItem.shopName" placeholder="店名/昵称">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item class="cls-choose">
        <el-select v-model="searchItem.countType" placeholder="财务类型">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-input v-model="searchItem.user" placeholder="请输入交易流水号/任务编号"></el-input>
      </el-form-item>
      <el-form-item>
        <el-date-picker
          v-model="searchItem.dateTime"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        ></el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">查询</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">导出</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      searchItem: {
        shopName: '',
        countType: '',
        dateTime: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!')
    }
  }
}
</script>

<style lang="scss" scoped>
.links-set {
  .el-col {
    line-height: 34px;

    &:first-of-type {
      text-indent: 2.5em;
      margin-right: 20px;
      font-size: 14px;
      font-weight: 500;
    }
  }
}

.el-form {
  padding-left: 35px;
  padding-top: 20px;
  margin-bottom: 20px;
}

.cls-choose {
  width: 100px;
}
</style>
